//
//  GoodNameCell.h
//  Wujin
//
//  Created by 东 on 16/12/8.
//  Copyright © 2016年 dong. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^cellBlock)(CGFloat);

typedef void(^PriceChangeBlock)(OrderGoodsModel *);


@interface GoodNameCell : UITableViewCell <UITextFieldDelegate>


{
    __weak IBOutlet UILabel *_nameLab;
    __weak IBOutlet UILabel *_priceLab;
    __weak IBOutlet UILabel *_unitLab;

    __weak IBOutlet UILabel *_colorLab;
    __weak IBOutlet UILabel *_guigeLab;
    
    __weak IBOutlet NSLayoutConstraint *_guigeY;
    UIButton *_selectColorBtn;
    UIButton *_selectGuigeBtn;
    
    __weak IBOutlet UIButton *_subBtn;
    __weak IBOutlet UIButton *_addBtn;
    __weak IBOutlet UITextField *_countField;
    
    CGFloat _price;
    CGFloat _totalPrice;
    CGFloat _count;
    OrderGoodsModel *_orderGoodsModel;
}

@property (strong, nonatomic) GoodsModel *model;
@property (assign, nonatomic) CGFloat maxHeight;

@property (copy, nonatomic) cellBlock block;

@property (copy, nonatomic) PriceChangeBlock priceChangeBlock;

@end
